﻿<cfsilent>
	<cfscript>
		
		studentId = event.getArg("stu");
	

		event.setArg("pageTitle", "教学运行基础数据 - 论文查看");
		
	
		passArgs = structNew();
		
		language = event.getArg("language", "ch");
		
		structInsert(passArgs, "stu", studentId);

		
		rs_paper = queryNew("");
		
		keyword = "关键字：";
		message = "简介：";
		stuName = "学生：";
		tchName = "指导老师：";
		gradTime = "提交时间：";
		summary = "论文摘要";
		content = "论文内容";
		
		hrefs = "English";
		
		if( len(studentId)){
			
			if( language eq "ch"){
				sql = "SELECT a.paper_title title, a.paper_summary summary, a.keywords keywords,a.paper_content content, 
						 a.grad_date, b.stu_name, c.tch_name, a.stu_id, length(a.paper_title) lenTitle
					FROM t_paper a  
						INNER JOIN t_student b ON b.stu_id = a.stu_id 
						INNER JOIN t_teacher c ON c.tch_id = a.tch_id 
					WHERE 
						a.stu_id = :studentId  "; 
						
				structInsert(passArgs, "language", "en");
			}else if(language eq "en"){
				
				sql = "SELECT a.paper_title_english title, a.paper_summary_english summary,
						a.keywords_english keywords, a.paper_content_english content, 
						 a.grad_date, b.stu_name, c.tch_name, a.stu_id, length(a.paper_title_english) lenTitle
					FROM t_paper a 
						INNER JOIN t_student b ON b.stu_id = a.stu_id 
						INNER JOIN t_teacher c ON c.tch_id = a.tch_id 
					WHERE 
						a.stu_id = :studentId "; 
						
				keyword = "Keywords：";
				message = "About：";
				stuName = "Student：";
				tchName = "GuideTeacher；";
				gradTime = "time：";
				summary = "Summary";
				content = "Content";
				
				hrefs = "中文";
				structInsert(passArgs, "language", "ch");
			}
			
		
			queryObj = new query( datasource=application.dnsSlave);
			
			queryObj.addParam( name="studentId", value=studentId, cfsqltype="cf_sql_varchar" );
			
			
			rs_paper = queryObj.execute( sql=sql ).getResult();	
			
			brNum = 2;
			
			if( language eq "ch"){
				brNum = left(rs_paper.lenTitle/22,1)+2;
			}else if(language eq "en"){
				if( len(rs_paper.lenTitle) ){
					brNum = left(rs_paper.lenTitle/37,1)+2;
				}
			}
			
			
			
		}
		
	</cfscript>
</cfsilent>
<!--STATUS OK-->
<!DOCTYPE html>
<!--STATUS OK-->
<html><head>
<LINK rel=stylesheet type=text/css href="<cfoutput>#getContextRoot()#</cfoutput>/acadmicRes/assets/css/baseviewcss3_6df613f3.css">

</head>

<body id="view" class="u-body ">
<div id="content" class="col-main article"><div class="content-bd main-body"><div class="text" id="sec-content0"><div class="tool-wrap" style="height:24px;"></div><h1 class="title maintitle" id="">

	<span class="lemmaTitleH1"><cfoutput>#rs_paper.title#</cfoutput></span><span class="bk-editable-lemma-btns bk3-title-wrap"></span></h1>
     
     <a href="<cfoutput>#buildURL("paperDetail",passArgs)#</cfoutput>"><cfoutput>#hrefs#</cfoutput></a>
     
     <div class="mod-top" id="card-container">
     	<div class="card-summary nslog-area clearfix" data-nslog-type="72">
               <div class="card-summary-content">
          
                    <div class="para">
                    	<cfloop from="1" to="#brNum#" index="rowIndex">
						<cfoutput><br/></cfoutput>
                         </cfloop>
					
					<br/><cfoutput>#keyword#</cfoutput><cfoutput>#rs_paper.keywords#</cfoutput>
                    </div>
               </div>
          </div>
     </div>
     
     <div class="z-catalog nslog-area log-set-param" log-set-param="catalogshow" data-nslog-type="1016" id="catalog-0" data-subindex="0" style="width:310px;">
          
           <h2><span><cfoutput>#message#</cfoutput></span></h2>
           
           <dl id="catalog-holder-0" class="holder hideholder">  
               <dd class="catalog-item 0">
               	<p class="z-catalog-i1">
                    	<span class="catalog-item-index1">1</span>
                         <a class="nslog:1274"  onclick="return true;"><cfoutput>#stuName#</cfoutput><cfoutput>#rs_paper.stu_name#</cfoutput></a>
                    </p>
               </dd>   
               <dd class="catalog-item 28">
               	<p class="z-catalog-i1">
                    	<span class="catalog-item-index1">2</span>
                         <a class="nslog:1274" catalog="true" name="STAT_ONCLICK_UNSUBMIT_CATALOG" onclick="return true;"><cfoutput>#tchName#</cfoutput><cfoutput>#rs_paper.tch_name#</cfoutput></a>
                    </p>
               </dd>    
               <dd class="catalog-item 56">
               	<p class="z-catalog-i1">
                    	<span class="catalog-item-index1">3</span>
                         <a class="nslog:1274" catalog="true" name="STAT_ONCLICK_UNSUBMIT_CATALOG" onclick="return true;"><cfoutput>#gradTime#</cfoutput><cfoutput>#rs_paper.grad_date#</cfoutput></a>
                    </p>
               </dd>    
                   
            </dl>
     </div>
     
	<div class="anchor-list"><a name="1" class="anchor-1"></a></div>

	<div class="clear"></div>
     
	<div id="lemmaContent-0" class="lemma-main-content">
          <h2 class="headline-1">
          
          <span class="headline-content"></span>
          
          <span class="headline-1-index">1</span>
          
          <span class="headline-content"><cfoutput>#summary#</cfoutput></span>
          
          </h2>
          
               <div class="para"><cfoutput>#rs_paper.summary#</cfoutput></div>
        
          
    		<div class="anchor-list"></div>
          
          <h2 class="headline-1">
          
          <span class="headline-1-index">2</span>
          
          <span class="headline-content">
			<cfoutput>#content#</cfoutput>
          </span>
          
          </h2>
               <div class="para"><cfoutput>#rs_paper.content#</cfoutput></div>
       
          
    		 <div class="anchor-list"></div><h2 class="headline-1"><h2 class="headline-1">
     </div> 
	<div class="clear"></div></div></div>
					
		</body></html>
